xen/arm: Store p2m type in each page of the guest
authorJulien Grall <julien.grall@linaro.org>
Tue, 17 Dec 2013 16:27:52 +0000 (16:27 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 18 Dec 2013 14:32:40 +0000 (14:32 +0000)
commit18651cc81bf46884cc0100574e9f41ebe91f93f8
treea8458385c8e4a1d7c391e20e5bdf82e160421785
parent587db6905046fd55f70f0d9fbbf7ff6a8d2ef58a
xen/arm: Store p2m type in each page of the guest

Use the field 'avail' to store the type of the page. Rename it to 'type' for
convenience.
The information stored in this field will be retrieved in a future patch to
change the behaviour when the page is removed.

Also introduce guest_physmap_add_entry to map and set a specific p2m type for
a page.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/p2m.c
xen/include/asm-arm/p2m.h
xen/include/asm-arm/page.h